<%@ page language="java" pageEncoding="utf8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
	dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>"
			type="text/css" />
		<link rel="stylesheet"
			href="<c:url value='/scripts/themes/base/jquery.ui.all.css'/>"
			type="text/css" />


	</head>
	<body>
		<div id="headBar" class="head_content">

		</div>
		<div id="main" class="main_content">
			<form class="tableform" action="sys_region_save.do"		method="post">
				<input type="hidden" value="${systemRegion.regionId}"  name="systemRegion.regionId" />
				 
				<div class="division">
					<table width="100%" cellspacing="0" cellpadding="0" border="0">
						<tbody>
							<tr>
								<th>
									地区名称： 
								</th>
								<td>
									<input type="text" value="${systemRegion.localName}" maxlength="20" name="systemRegion.localName" />
								</td>
							</tr>
 
							<tr>
								<th>
									排序：
								</th>
								<td>
									<input type="text" value="${systemRegion.showOrder}" class="_x_ipt"
										style="width: 50px;"   name="systemRegion.showOrder" />
										<span class="notice-inline">数字越小越靠前</span>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="table-action">
					<button class="btn" type="submit">
						<span><span>保存</span>
						</span>
					</button> 
				</div>
			</form>

		</div>
		<div id="footBar" class="foot_content">
		</div>



		<script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript"
			src="<c:url value='/scripts/jquery.validate.js'/>"></script>
		<script type="text/javascript">	
   
	
	

$(document).ready(function() {
	// validate signup form on keyup and submit
	var validator = $("#brandForm").validate({
		errorElement: "div" ,
		errorClass: "x-vali-error",
		onfocusout: false,
		rules: {
			'systemRegion.localName' : "required",			 
			'goodsBrand.showOrder' : {
				required: true,
				number:true
			}
		},
		messages: {
			'systemRegion.localName': '<fmt:message key="form_validate.required" />',			 
			'goodsBrand.showOrder': '<fmt:message key="form_validate.number" />' 
		},
		 
		errorPlacement: function(error, element) {
			element.removeClass('x-vali-error');
			error.appendTo( element.parent());
			
			
		}, 
		success: function(div) {	 
			$(div).remove();
		}
	});
});


</script>

	</body>


</html>

